﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResetPassWord.aspx.cs" Inherits="webnew.ResetPassWord" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>
    
    </title>
    <link href="/App_Themes/Style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="contentbox">
    <fieldset id="EditBox" runat="server" class="EditBox">
        <table id="EditTbl" cellpadding='2' cellspacing='1'>
            <tr>
                <td align="left" class="td2" colspan="2">
                    <asp:Button ID="btnSave" runat="server" CssClass="btn" Text="保 存" 
                        onclick="btnSave_Click" />
&nbsp;&nbsp;
                    <asp:Button ID="btnBack" runat="server" CssClass="btn" Text="返 回" 
                        onclick="btnBack_Click" />
                &nbsp;</td>
            </tr>
            <tr>
                <td  class="td1" colspan="2"  style="text-align:center !important;font: color: #FF0000;"> 
                    <asp:Label ID="lblMsg" runat="server" ForeColor="#FF3300"></asp:Label>
            </tr>
            <tr>
                <td align="right" class="td1" style="width: 200px">
                    用户名：</td>
                <td class="td2">
                    <asp:TextBox ID="txtUid" runat="server" CssClass="txt"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="td1">
                    &nbsp; 旧密码：</td>
                <td class="td2">
                    <asp:TextBox ID="txtOldPwd" runat="server" CssClass="txt" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="td1">
                    新密码：</td>
                <td class="td2">
                    <asp:TextBox ID="txtNewPwd" runat="server" CssClass="txt" TextMode="Password"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtNewPwd" ErrorMessage="密码长度不能少于8位，必须是数字和字母的组合" 
                        ValidationExpression="[a-zA-Z0-9]{8,}"></asp:RegularExpressionValidator>
                      <!-- ValidationExpression="^((?=.*\d.*)(?=.*[a-zA-Z].*)).{8,}$">-->

                </td>
            </tr>
            <tr>
                <td align="right" class="td1">
                    再次确定：</td>
                <td class="td2">
                    <asp:TextBox ID="txtTruePwd" runat="server" CssClass="txt" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtNewPwd" ControlToValidate="txtTruePwd" Display="Dynamic" 
                        ErrorMessage="*两次密码输入不一致"></asp:CompareValidator>
                </td>
            </tr>
            </table>
    </fieldset>
    </div>
    </form>
</body>
</html>
